package cn.duli.myvideo.mapper;

import cn.duli.myvideo.pojo.User;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    Page<User> findAll();

    void deleteById(@Param("uId") Integer uId);

    User findUserByUserName(@Param("uName") String uName);

    void save(User user);

    User login(User user);

    User findByUserName(@Param("uName") String uName);

    void update(User user);

    User findPwdByUserName(@Param("uName") String uName);

    void updatePwd(User user);
}